﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="DDDDaGiao.aspx.cs" Inherits="Web.Shalo.BanPMS1.Admin.DDDDaGiao" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentAdmin" runat="server">
    <div id="page-heading">
		<h1>Đơn Đặt Hàng Đã Giao</h1>
	</div>
	<!-- end page-heading -->

	<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
	<tr>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id="content-table-inner">
		
			<!--  start table-content  -->
			<div id="table-content">
				
			
			    <asp:MultiView ID="MultiView1" runat="server">
                    <asp:View ID="View1" runat="server">
                        <table style="width: 100%">
                            <tr>
                                <td>
                                    <h2>Danh Sách</h2></td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:GridView ID="GVDDHang" runat="server" AutoGenerateColumns="False" 
                                        CssClass="mGrid" Width="634px" 
                                        onselectedindexchanging="GVDDHang_SelectedIndexChanging" 
                                        AllowPaging="True" onpageindexchanging="GVDDHang_PageIndexChanging">
                                        <Columns>
                                            <asp:BoundField DataField="SoHD" HeaderText="Số HD" />
                                            <asp:BoundField DataField="TenKH" HeaderText="Tên KH" />
                                            <asp:BoundField DataField="NgayLap" HeaderText="Ngày Lập" />
                                            <asp:BoundField DataField="GhiChu" HeaderText="Ghi Chú" />
                                            <asp:BoundField DataField="TongTien" HeaderText="Tổng Tiền" 
                                                DataFormatString="{0:0,0 }" />
                                            <asp:ButtonField CommandName="Select" Text="Xem" ControlStyle-CssClass="link" >
                                            <ControlStyle CssClass="link" />
                                            <ItemStyle HorizontalAlign="Center" />
                                            </asp:ButtonField>
                                        </Columns>
                                    </asp:GridView>
                                </td>
                            </tr>
                        </table>
                    </asp:View>
                    <br />
                    <asp:View ID="View2" runat="server">
                      
                        <table style="width: 100%">
                            <tr>
                                <td colspan="2">
                                    <h2>Chi Tiết Đơn Đặt Hàng</h2></td>
                            </tr>
                            <tr>
                                <td style="width: 149px">
                                    Số Hóa Đơn:</td>
                                <td>
                                    <asp:Label ID="labSohd" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 149px">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 149px">
                                    Ngày Lập:</td>
                                <td>
                                    <asp:Label ID="labNgaylap" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 149px">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 149px">
                                    Tên Khách Hàng:</td>
                                <td>
                                    <asp:Label ID="labTenKH" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 149px">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 149px">
                                    Ngày Sinh:</td>
                                <td>
                                    <asp:Label ID="labNgaySinh" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 149px; height: 16px;">
                                    </td>
                                <td style="height: 16px">
                                    </td>
                            </tr>
                            <tr>
                                <td style="width: 149px">
                                    Địa Chỉ:</td>
                                <td>
                                    <asp:Label ID="labDiaChi" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 149px">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 149px">
                                    Số Điện Thoại :</td>
                                <td>
                                    <asp:Label ID="labSoDT" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 149px">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 149px">
                                    Nhân Viên Giao Hàng</td>
                                <td>
                                    <asp:Label ID="labNVGiaoHang" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 149px">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 149px">
                                    Ngày Giao</td>
                                <td>
                                    <asp:Label ID="labNgayGiao" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 149px">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 149px">
                                    Ghi Chú</td>
                                <td>
                                    <asp:Label ID="labGhiChu" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 149px">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 149px">
                                    Tổng Tiền :</td>
                                <td>
                                    <asp:Label ID="labTongTien" runat="server" Text="Label"></asp:Label>
                                    <asp:Label ID="Label1" runat="server" Text="VND"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 149px; height: 16px;">
                                    </td>
                                <td style="height: 16px">
                                    </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:GridView ID="GVCthd" runat="server" AutoGenerateColumns="False" 
                                        CssClass="mGrid" Width="520px">
                                        <Columns>
                                           <asp:TemplateField HeaderText="Stt">
                <ItemTemplate><%# Container.DataItemIndex + 1 %></ItemTemplate>
            </asp:TemplateField> 
                                            <asp:BoundField DataField="TenMH" HeaderText="Tên Mặt Hàng" />
                                            <asp:BoundField DataField="SoLuong" HeaderText="Số Lượng" />
                                            <asp:BoundField DataField="GiaBan" HeaderText="Giá Bán" 
                                                DataFormatString="{0:0,0}" />
                                            <asp:BoundField DataField="ThanhTien" HeaderText="Thành Tiền" 
                                                DataFormatString="{0:0,0}" />
                                        </Columns>
                                    </asp:GridView>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:Button ID="btnDSDonDH" runat="server" CssClass="btn" 
                                        onclick="btnDSDonDH_Click" Text="Danh Sách Đơn Đặt Hàng" />
                                </td>
                            </tr>
                        </table>
                      
                    </asp:View>
                </asp:MultiView>
				
			
			</div>
			<!--  end table-content  -->
	
			<div class="clear"></div>
		 
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>


</asp:Content>
